﻿using FluentNHibernate.Mapping;
using IapService.Entity;

namespace IapService.Mappings
{
    public class ClientLiteInstanceLiteMap : ClassMap<ClientLiteInstanceLite>
    {
        public ClientLiteInstanceLiteMap()
        {
            Id(x => x.Id);
            Map(x => x.clientId);
            
            References(x => x.InstanceLite, "instanceId").Cascade.Delete();

            Table("clientInstance");
        }
    }
}